  /**
   * Generate time : 2012-02-07 16:45:40
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ce.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCEEquipmentDynamic 
 * table comment : 流转动态 
 */
public class ZMCEEquipmentDynamic extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdType = " ";		/* 变动类型*/
	private String fdCode = " ";		/* 单据编号*/
	private String fdEquipmentId = " ";		/* 对应设备ID*/
	private String fdDate = " ";		/* 变动日期*/
	private String fdStatus = " ";		/* 状态*/
	private String fdOldDepartmentId = " ";		/* 原所在部门ID*/
	private String fdOldDepartment = " ";		/* 原所在部门*/
	private String fdNewDepartmentId = " ";		/* 现所在部门ID*/
	private String fdNewDepartment = " ";		/* 现所在部门*/
	private String fdOldEngineeringId = " ";		/* 原所在工程ID*/
	private String fdOldEngineering = " ";		/* 原所在工程*/
	private String fdNewEngineeringId = " ";		/* 现所在工程ID*/
	private String fdNewEngineering = " ";		/* 现所在工程*/
	private String fdCost = " ";		/* 变动费用*/
	private String fdOldStatus = " ";		/* 原设备状态*/
	private String fdOpinions = " ";		/* 审批意见*/
	private String fdApprovalPerson = " ";		/* 审批人*/
	private String fdPreparerId = " ";		/* 编制人ID*/
	private String fdPreparer = " ";		/* 编制人*/
	private String fdPreparerDepId = " ";		/* 编制单位ID*/
	private String fdRemarks = " ";		/* 备注*/
	
	private String fdEquipmentCode = " "; /* 设备编号 */
	private String fdEquipmentName = " "; /* 设备名称 */
	private String fdEquipmentSpecifications = " "; /* 设备规格 */
	private String fdEquipmentModel = " "; /* 设备型号 */

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdType");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("变动类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCode");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("单据编号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEquipmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("对应设备ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("变动日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdOldDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("原所在部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdOldDepartment");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName("原所在部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNewDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("现所在部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNewDepartment");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName("现所在部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdOldEngineeringId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("原所在工程ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdOldEngineering");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("原所在工程");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNewEngineeringId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("现所在工程ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNewEngineering");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("现所在工程");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCost");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("变动费用");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdOldStatus");
	eiColumn.setFieldLength(120);	
	eiColumn.setDescName("原设备状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdOpinions");
	eiColumn.setFieldLength(120);	
	eiColumn.setDescName("审批意见");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdApprovalPerson");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("审批人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPreparerId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("编制人ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPreparer");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("编制人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPreparerDepId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("编制单位ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemarks");
	eiColumn.setFieldLength(250);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEquipmentCode");
	eiColumn.setFieldLength(20);
	eiColumn.setDescName("设备编号");
	eiMetadata.addMeta(eiColumn);

	eiColumn = new EiColumn("fdEquipmentName");
	eiColumn.setFieldLength(50);
	eiColumn.setDescName("设备名称");
	eiMetadata.addMeta(eiColumn);

	eiColumn = new EiColumn("fdEquipmentSpecifications");
	eiColumn.setFieldLength(30);
	eiColumn.setDescName("设备规格");
	eiMetadata.addMeta(eiColumn);

	eiColumn = new EiColumn("fdEquipmentModel");
	eiColumn.setFieldLength(30);
	eiColumn.setDescName("设备型号");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCEEquipmentDynamic() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdType - 变动类型
	 * @return the fdType
	 */
	public String getFdType() {
		return this.fdType;
	}
	
	/**
	 * set the fdType - 变动类型
	 */
	public void setFdType(String fdType) {
		this.fdType = fdType;
	}
	
	/**
	 * get the fdCode - 单据编号
	 * @return the fdCode
	 */
	public String getFdCode() {
		return this.fdCode;
	}
	
	/**
	 * set the fdCode - 单据编号
	 */
	public void setFdCode(String fdCode) {
		this.fdCode = fdCode;
	}
	
	/**
	 * get the fdEquipmentId - 对应设备ID
	 * @return the fdEquipmentId
	 */
	public String getFdEquipmentId() {
		return this.fdEquipmentId;
	}
	
	/**
	 * set the fdEquipmentId - 对应设备ID
	 */
	public void setFdEquipmentId(String fdEquipmentId) {
		this.fdEquipmentId = fdEquipmentId;
	}
	
	/**
	 * get the fdDate - 变动日期
	 * @return the fdDate
	 */
	public String getFdDate() {
		return this.fdDate;
	}
	
	/**
	 * set the fdDate - 变动日期
	 */
	public void setFdDate(String fdDate) {
		this.fdDate = fdDate;
	}
	
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	
	/**
	 * get the fdOldDepartmentId - 原所在部门ID
	 * @return the fdOldDepartmentId
	 */
	public String getFdOldDepartmentId() {
		return this.fdOldDepartmentId;
	}
	
	/**
	 * set the fdOldDepartmentId - 原所在部门ID
	 */
	public void setFdOldDepartmentId(String fdOldDepartmentId) {
		this.fdOldDepartmentId = fdOldDepartmentId;
	}
	
	/**
	 * get the fdOldDepartment - 原所在部门
	 * @return the fdOldDepartment
	 */
	public String getFdOldDepartment() {
		return this.fdOldDepartment;
	}
	
	/**
	 * set the fdOldDepartment - 原所在部门
	 */
	public void setFdOldDepartment(String fdOldDepartment) {
		this.fdOldDepartment = fdOldDepartment;
	}
	
	/**
	 * get the fdNewDepartmentId - 现所在部门ID
	 * @return the fdNewDepartmentId
	 */
	public String getFdNewDepartmentId() {
		return this.fdNewDepartmentId;
	}
	
	/**
	 * set the fdNewDepartmentId - 现所在部门ID
	 */
	public void setFdNewDepartmentId(String fdNewDepartmentId) {
		this.fdNewDepartmentId = fdNewDepartmentId;
	}
	
	/**
	 * get the fdNewDepartment - 现所在部门
	 * @return the fdNewDepartment
	 */
	public String getFdNewDepartment() {
		return this.fdNewDepartment;
	}
	
	/**
	 * set the fdNewDepartment - 现所在部门
	 */
	public void setFdNewDepartment(String fdNewDepartment) {
		this.fdNewDepartment = fdNewDepartment;
	}
	
	/**
	 * get the fdOldEngineeringId - 原所在工程ID
	 * @return the fdOldEngineeringId
	 */
	public String getFdOldEngineeringId() {
		return this.fdOldEngineeringId;
	}
	
	/**
	 * set the fdOldEngineeringId - 原所在工程ID
	 */
	public void setFdOldEngineeringId(String fdOldEngineeringId) {
		this.fdOldEngineeringId = fdOldEngineeringId;
	}
	
	/**
	 * get the fdOldEngineering - 原所在工程
	 * @return the fdOldEngineering
	 */
	public String getFdOldEngineering() {
		return this.fdOldEngineering;
	}
	
	/**
	 * set the fdOldEngineering - 原所在工程
	 */
	public void setFdOldEngineering(String fdOldEngineering) {
		this.fdOldEngineering = fdOldEngineering;
	}
	
	/**
	 * get the fdNewEngineeringId - 现所在工程ID
	 * @return the fdNewEngineeringId
	 */
	public String getFdNewEngineeringId() {
		return this.fdNewEngineeringId;
	}
	
	/**
	 * set the fdNewEngineeringId - 现所在工程ID
	 */
	public void setFdNewEngineeringId(String fdNewEngineeringId) {
		this.fdNewEngineeringId = fdNewEngineeringId;
	}
	
	/**
	 * get the fdNewEngineering - 现所在工程
	 * @return the fdNewEngineering
	 */
	public String getFdNewEngineering() {
		return this.fdNewEngineering;
	}
	
	/**
	 * set the fdNewEngineering - 现所在工程
	 */
	public void setFdNewEngineering(String fdNewEngineering) {
		this.fdNewEngineering = fdNewEngineering;
	}
	
	/**
	 * get the fdCost - 变动费用
	 * @return the fdCost
	 */
	public String getFdCost() {
		return this.fdCost;
	}
	
	/**
	 * set the fdCost - 变动费用
	 */
	public void setFdCost(String fdCost) {
		this.fdCost = fdCost;
	}
	
	/**
	 * get the fdOldStatus - 原设备状态
	 * @return the fdOldStatus
	 */
	public String getFdOldStatus() {
		return this.fdOldStatus;
	}
	
	/**
	 * set the fdOldStatus - 原设备状态
	 */
	public void setFdOldStatus(String fdOldStatus) {
		this.fdOldStatus = fdOldStatus;
	}
	
	/**
	 * get the fdOpinions - 审批意见
	 * @return the fdOpinions
	 */
	public String getFdOpinions() {
		return this.fdOpinions;
	}
	
	/**
	 * set the fdOpinions - 审批意见
	 */
	public void setFdOpinions(String fdOpinions) {
		this.fdOpinions = fdOpinions;
	}
	
	/**
	 * get the fdApprovalPerson - 审批人
	 * @return the fdApprovalPerson
	 */
	public String getFdApprovalPerson() {
		return this.fdApprovalPerson;
	}
	
	/**
	 * set the fdApprovalPerson - 审批人
	 */
	public void setFdApprovalPerson(String fdApprovalPerson) {
		this.fdApprovalPerson = fdApprovalPerson;
	}
	
	/**
	 * get the fdPreparerId - 编制人ID
	 * @return the fdPreparerId
	 */
	public String getFdPreparerId() {
		return this.fdPreparerId;
	}
	
	/**
	 * set the fdPreparerId - 编制人ID
	 */
	public void setFdPreparerId(String fdPreparerId) {
		this.fdPreparerId = fdPreparerId;
	}
	
	/**
	 * get the fdPreparer - 编制人
	 * @return the fdPreparer
	 */
	public String getFdPreparer() {
		return this.fdPreparer;
	}
	
	/**
	 * set the fdPreparer - 编制人
	 */
	public void setFdPreparer(String fdPreparer) {
		this.fdPreparer = fdPreparer;
	}
	
	/**
	 * get the fdPreparerDepId - 编制单位ID
	 * @return the fdPreparerDepId
	 */
	public String getFdPreparerDepId() {
		return this.fdPreparerDepId;
	}
	
	/**
	 * set the fdPreparerDepId - 编制单位ID
	 */
	public void setFdPreparerDepId(String fdPreparerDepId) {
		this.fdPreparerDepId = fdPreparerDepId;
	}
	
	/**
	 * get the fdRemarks - 备注
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}
	
	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}
	
	/**
	 * get the fdCode - 设备编号
	 * 
	 * @return the fdCode
	 */
	public String getFdEquipmentCode() {
		return this.fdEquipmentCode;
	}

	/**
	 * set the fdCode - 设备编号
	 */
	public void setFdEquipmentCode(String fdEquipmentCode) {
		this.fdEquipmentCode = fdEquipmentCode;
	}

	/**
	 * get the fdName - 设备名称
	 * 
	 * @return the fdName
	 */
	public String getFdEquipmentName() {
		return this.fdEquipmentName;
	}

	/**
	 * set the fdName - 设备名称
	 */
	public void setFdEquipmentName(String fdEquipmentName) {
		this.fdEquipmentName = fdEquipmentName;
	}

	/**
	 * get the fdSpecifications - 设备规格
	 * 
	 * @return the fdSpecifications
	 */
	public String getFdEquipmentSpecifications() {
		return this.fdEquipmentSpecifications;
	}

	/**
	 * set the fdSpecifications - 设备规格
	 */
	public void setFdEquipmentSpecifications(String fdEquipmentSpecifications) {
		this.fdEquipmentSpecifications = fdEquipmentSpecifications;
	}

	/**
	 * get the fdModel - 设备型号
	 * 
	 * @return the fdModel
	 */
	public String getFdEquipmentModel() {
		return this.fdEquipmentModel;
	}

	/**
	 * set the fdModel - 设备型号
	 */
	public void setFdEquipmentModel(String fdEquipmentModel) {
		this.fdEquipmentModel = fdEquipmentModel;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdType")), fdType));
		setFdCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCode")), fdCode));
		setFdEquipmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentId")), fdEquipmentId));
		setFdDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDate")), fdDate));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdOldDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdOldDepartmentId")), fdOldDepartmentId));
		setFdOldDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdOldDepartment")), fdOldDepartment));
		setFdNewDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNewDepartmentId")), fdNewDepartmentId));
		setFdNewDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNewDepartment")), fdNewDepartment));
		setFdOldEngineeringId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdOldEngineeringId")), fdOldEngineeringId));
		setFdOldEngineering(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdOldEngineering")), fdOldEngineering));
		setFdNewEngineeringId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNewEngineeringId")), fdNewEngineeringId));
		setFdNewEngineering(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNewEngineering")), fdNewEngineering));
		setFdCost(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCost")), fdCost));
		setFdOldStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdOldStatus")), fdOldStatus));
		setFdOpinions(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdOpinions")), fdOpinions));
		setFdApprovalPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdApprovalPerson")), fdApprovalPerson));
		setFdPreparerId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPreparerId")), fdPreparerId));
		setFdPreparer(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPreparer")), fdPreparer));
		setFdPreparerDepId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPreparerDepId")), fdPreparerDepId));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));
		
		setFdEquipmentCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentCode")), fdEquipmentCode));
		setFdEquipmentName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentName")), fdEquipmentName));
		setFdEquipmentSpecifications(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentSpecifications")), fdEquipmentSpecifications));
		setFdEquipmentModel(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentModel")), fdEquipmentModel));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdType",StringUtils.toString(fdType, eiMetadata.getMeta("fdType")));	
			map.put("fdCode",StringUtils.toString(fdCode, eiMetadata.getMeta("fdCode")));	
			map.put("fdEquipmentId",StringUtils.toString(fdEquipmentId, eiMetadata.getMeta("fdEquipmentId")));	
			map.put("fdDate",StringUtils.toString(fdDate, eiMetadata.getMeta("fdDate")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdOldDepartmentId",StringUtils.toString(fdOldDepartmentId, eiMetadata.getMeta("fdOldDepartmentId")));	
			map.put("fdOldDepartment",StringUtils.toString(fdOldDepartment, eiMetadata.getMeta("fdOldDepartment")));	
			map.put("fdNewDepartmentId",StringUtils.toString(fdNewDepartmentId, eiMetadata.getMeta("fdNewDepartmentId")));	
			map.put("fdNewDepartment",StringUtils.toString(fdNewDepartment, eiMetadata.getMeta("fdNewDepartment")));	
			map.put("fdOldEngineeringId",StringUtils.toString(fdOldEngineeringId, eiMetadata.getMeta("fdOldEngineeringId")));	
			map.put("fdOldEngineering",StringUtils.toString(fdOldEngineering, eiMetadata.getMeta("fdOldEngineering")));	
			map.put("fdNewEngineeringId",StringUtils.toString(fdNewEngineeringId, eiMetadata.getMeta("fdNewEngineeringId")));	
			map.put("fdNewEngineering",StringUtils.toString(fdNewEngineering, eiMetadata.getMeta("fdNewEngineering")));	
			map.put("fdCost",StringUtils.toString(fdCost, eiMetadata.getMeta("fdCost")));	
			map.put("fdOldStatus",StringUtils.toString(fdOldStatus, eiMetadata.getMeta("fdOldStatus")));	
			map.put("fdOpinions",StringUtils.toString(fdOpinions, eiMetadata.getMeta("fdOpinions")));	
			map.put("fdApprovalPerson",StringUtils.toString(fdApprovalPerson, eiMetadata.getMeta("fdApprovalPerson")));	
			map.put("fdPreparerId",StringUtils.toString(fdPreparerId, eiMetadata.getMeta("fdPreparerId")));	
			map.put("fdPreparer",StringUtils.toString(fdPreparer, eiMetadata.getMeta("fdPreparer")));	
			map.put("fdPreparerDepId",StringUtils.toString(fdPreparerDepId, eiMetadata.getMeta("fdPreparerDepId")));	
			map.put("fdRemarks",StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));	
			
			map.put("fdEquipmentCode", StringUtils.toString(fdEquipmentCode, eiMetadata.getMeta("fdEquipmentCode")));
			map.put("fdEquipmentName", StringUtils.toString(fdEquipmentName, eiMetadata.getMeta("fdEquipmentName")));
			map.put("fdEquipmentSpecifications", StringUtils.toString(fdEquipmentSpecifications, eiMetadata.getMeta("fdEquipmentSpecifications")));
			map.put("fdEquipmentModel", StringUtils.toString(fdEquipmentModel, eiMetadata.getMeta("fdEquipmentModel")));

			
		return map;
	
	}
}